package com.freesky.biz.icbc.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import com.alibaba.excel.enums.poi.BorderStyleEnum;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
@ContentRowHeight(22)
@ColumnWidth(25)
@HeadRowHeight(25)
@HeadStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER,
        verticalAlignment = VerticalAlignmentEnum.CENTER,
        borderLeft= BorderStyleEnum.THIN,
        borderRight= BorderStyleEnum.THIN,
        borderTop= BorderStyleEnum.THIN,
        borderBottom= BorderStyleEnum.THIN)//表头样式
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER,
        verticalAlignment = VerticalAlignmentEnum.CENTER,
        borderLeft= BorderStyleEnum.THIN,
        borderRight= BorderStyleEnum.THIN,
        borderTop= BorderStyleEnum.THIN,
        borderBottom= BorderStyleEnum.THIN)
public class TIcbcPtDigitalWallet implements java.io.Serializable{

    private static final long serialVersionUID = 1L;

    @ExcelProperty("记录ID")
    private String id;

    @ExcelProperty("手机号码")
    private String mobile;

    @ExcelProperty("类型")
    private String type;

    @ExcelProperty("金额")
    private String amt;

    @ExcelIgnore
    private String userNo;

    @ExcelIgnore
    private String openId;


    @ExcelProperty("地址")
    private String address;

    @ExcelIgnore
    private String lat;
    @ExcelIgnore
    private String lng;

    @ExcelProperty("发券情况")
    private String resultMsg;

    @ExcelProperty("领取时间")
    private String createDate;

    @ExcelIgnore
    private String resultCode;

    @ExcelIgnore
    private Map<String, Object> params;

    public Map<String, Object> getParams()
    {
        if (params == null)
        {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params)
    {
        this.params = params;
    }
}
